import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入全局样式表
import './style/commen.less'
// 引入FastClick,会导致双击报错
// import './plugins/FastClick'
// 引入vant组件库
import './plugins/vant'
// 引入url插件
import urls from './utils/url'
Vue.use(urls)

Vue.config.productionTip = false
import axios from 'axios'
axios.defaults.baseURL = "https://testcustom-mall.zengapp.cn/api/customTemplate/"
Vue.prototype.$http = axios
new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线,创建bus
  },
}).$mount('#app')
